package com.example.busiservice.controller;


import com.example.busiservice.vo.ObjectVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

/**
 * @Description TODO
 * @Author li
 * @Date 2023/9/26 15:17
 */

@RestController
public class Oneshow {
    @PostMapping("/oneShow")
    public ObjectVo oneshow(@RequestBody ObjectVo myObject) {
        ObjectVo myObject1 = new ObjectVo();
        myObject1.setCode(myObject.getCode());
        myObject1.setMsg(myObject.getMsg());
        return myObject1;
    }

    @GetMapping("/twoShow")
    public String twoshow() {
        return "时间都知道";
    }
}